package com.ai.platform.system.service;

import com.ai.platform.model.dto.Input;
import com.ai.platform.model.dto.Output;
import com.ai.platform.core.exception.BusinessException;
import com.ai.platform.system.entity.SysUser;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author yeyingsheng
 * @since 2018-05-12
 */
public interface ISysUserService extends IService<SysUser> {

    /**
     * 根据账号查询用户
     * @param input
     * @param output
     * @throws BusinessException
     */
    void getSysUserByAccount(Input input, Output output) throws BusinessException;

    /**
     * 分页查询用户列表
     * @param input
     * @param output
     * @throws BusinessException
     */
    void listUser(Input input, Output output) throws BusinessException;

    /**
     * 用户保存
     * @param input
     * @param output
     * @throws BusinessException
     */
    void saveUser(Input input, Output output) throws BusinessException;

    /**
     * 删除用户
     * @param input
     * @param output
     * @throws BusinessException
     */
    void deleteUser(Input input, Output output) throws BusinessException;

}
